﻿<Window x:Class="PowerMon.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:PowerMon"
        xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        Title="监控系统" Height="227" Width="541">
    <Grid Name="Mongrid">
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,12,0,0" Name="textBlock1" Text="系统启动时间:" VerticalAlignment="Top" Width="100" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="118,12,0,0" Name="textBlock2" Text=" " VerticalAlignment="Top" Width="200" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,52,0,0" Name="textBlock3" Text="系统运行时间:" VerticalAlignment="Top" Width="100" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="118,52,0,0" Name="texttime" Text=" " VerticalAlignment="Top" Width="200" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,92,0,0" Name="textBlock4" Text="接收数据数:" VerticalAlignment="Top" Width="100" />
        <TextBlock Height="30" HorizontalAlignment="Left" Margin="118,92,0,0" Name="textnum" Text=" " VerticalAlignment="Top" Width="200" />

        <l:NotificationAreaIcon
                      Text="NotificationAreaApplication1"
                      Icon="Resource\Notification.ico"
                      MouseDoubleClick="OnNotificationAreaIconDoubleClick">

            <l:NotificationAreaIcon.MenuItems>
                <forms:MenuItem Text="关于监控程序" Click="OnMenuItemAboutClick" />
                <forms:MenuItem Text="-" />
                <forms:MenuItem Text="显示监控程序" Click="OnMenuItemOpenClick" DefaultItem="True" />
                <forms:MenuItem Text="-" />
                <forms:MenuItem Text="退出监控程序" Click="OnMenuItemExitClick" />
            </l:NotificationAreaIcon.MenuItems>
        </l:NotificationAreaIcon>

    </Grid>

</Window>